﻿using NuGet.Configuration;
using QuickGet.Core.Models;

namespace QuickGet.Core.Stores
{
    public interface IPackageSourceStore
    {
        Task CreateAsync(PackageSourceInfo source, CancellationToken cancellationToken);

        Task<PackageSourceInfo?> GetAsync(string name, CancellationToken cancellationToken);

        Task<List<PackageSourceInfo>> ListAsync(CancellationToken cancellationToken);

        Task SetEnabledAsync(string name, bool isEnabled, CancellationToken cancellationToken);
    }
}
